﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSite.Core;
using Common;

namespace WebSite
{
    public partial class EventHighlight : BasePage
    {
        public override bool NeedLogin
        {
            get
            {
                return false;
            }
        }

        public List<Maticsoft.Model.CarrefourCover.Trivia> listHighlight = null;

        protected void Page_Load( object sender, EventArgs e )
        {
            NavHelper.SetNavMenuSelectedIndex( 5 );

            int citytype = StringHelper.Convert( Request["citytype"], 0 );

            Maticsoft.BLL.CarrefourCover.Trivia bll = new Maticsoft.BLL.CarrefourCover.Trivia();
            listHighlight = bll.GetModelList( "status=1 AND citytype=" + citytype.ToString() ).OrderBy(p=>p.OrderBy).ToList();
            
        }

        public string GetImage( Maticsoft.Model.CarrefourCover.Trivia m )
        {
            return m == null ? "" : m.ImageBig;
        }

        public string GetCssClass( Maticsoft.Model.CarrefourCover.Trivia m )
        {
            return m == null ? "a_huaxu_none" : "a_huaxu";
        }

        public string GetTitle( Maticsoft.Model.CarrefourCover.Trivia m )
        {
            return m == null ? "" : m.ImageSmall;
        }
    }
}